﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-14 11:31:18
// 负责人：liucx
// ===================================================================

using System;
using System.Collections.Generic;
using System.ComponentModel;
using OF.Component.Model;
using System.Runtime.Serialization;
namespace OF.Component.Model
{
    #region ErrorLog数据实体
    /// <summary>
    ///异常日志数据实体  
    /// </summary>
    [Serializable]
    [DataContract]
    public class ErrorLogInfo
    {

        #region 公共属性

        ///<summary>
        ///主键
        ///</summary>
        [Description("主键")]
        [DataMember]
        public long ErrorLogID
        {
            get; set;
        }

        ///<summary>
        ///请求方法(1： GET，2：POST)
        ///</summary>
        [Description("请求方法(1： GET，2：POST)")]
        [DataMember]
        public string RequestMethod
        {
            get; set;
        }

        ///<summary>
        ///请求地址
        ///</summary>
        [Description("请求地址")]
        [DataMember]
        public string RequestUrl
        {
            get; set;
        }

        ///<summary>
        ///APP版本
        ///</summary>
        [Description("APP版本")]
        [DataMember]
        public string APPVersion
        {
            get; set;
        }

        ///<summary>
        ///出错平台（1：app,2：OP,3：取号机API，4：取号机客户端）
        ///</summary>
        [Description("出错平台（1：app,2：OP,3：取号机API，4：取号机客户端）")]
        [DataMember]
        public int Platform
        {
            get; set;
        }

        ///<summary>
        ///平台版本(IOS 4.0)
        ///</summary>
        [Description("平台版本(IOS 4.0)")]
        [DataMember]
        public string PlatformVersion
        {
            get; set;
        }

        ///<summary>
        ///用户ID
        ///</summary>
        [Description("用户ID")]
        [DataMember]
        public long UserID
        {
            get; set;
        }

        ///<summary>
        ///提交内容(POST)
        ///</summary>
        [Description("提交内容(POST)")]
        [DataMember]
        public string PostData
        {
            get; set;
        }

        ///<summary>
        ///浏览器信息
        ///</summary>
        [Description("浏览器信息")]
        [DataMember]
        public string UA
        {
            get; set;
        }

        ///<summary>
        ///厂商(三星、小米)
        ///</summary>
        [Description("厂商(三星、小米)")]
        [DataMember]
        public string Vendor
        {
            get; set;
        }

        ///<summary>
        ///设备的型号
        ///</summary>
        [Description("设备的型号")]
        [DataMember]
        public string Model
        {
            get; set;
        }

        ///<summary>
        ///IOS设备令牌
        ///</summary>
        [Description("IOS设备令牌")]
        [DataMember]
        public string Token
        {
            get; set;
        }

        ///<summary>
        ///安卓服务令牌
        ///</summary>
        [Description("安卓服务令牌")]
        [DataMember]
        public string ClientId
        {
            get; set;
        }

        ///<summary>
        ///手机号
        ///</summary>
        [Description("手机号")]
        [DataMember]
        public string Mobile
        {
            get; set;
        }

        ///<summary>
        ///国际标识码
        ///</summary>
        [Description("国际标识码")]
        [DataMember]
        public string Imei
        {
            get; set;
        }

        ///<summary>
        ///唯一标识符
        ///</summary>
        [Description("唯一标识符")]
        [DataMember]
        public string Uuid
        {
            get; set;
        }

        ///<summary>
        ///请求时间
        ///</summary>
        [Description("请求时间")]
        [DataMember]
        public DateTime CreatedDate
        {
            get; set;
        }

        ///<summary>
        ///IP地址
        ///</summary>
        [Description("IP地址")]
        [DataMember]
        public string ClientIP
        {
            get; set;
        }

        ///<summary>
        ///错误信息
        ///</summary>
        [Description("错误信息")]
        [DataMember]
        public string ErrorMessage
        {
            get; set;
        }

        ///<summary>
        ///错误来源
        ///</summary>
        [Description("错误来源")]
        [DataMember]
        public string ErrorSource
        {
            get; set;
        }

        ///<summary>
        ///错误跟踪
        ///</summary>
        [Description("错误跟踪")]
        [DataMember]
        public string ErrorTrace
        {
            get; set;
        }

        #endregion

        #region 构造函数
        ///<summary>
        ///异常日志
        ///</summary>
        public ErrorLogInfo()
        {
        }

        #endregion
    }
    #endregion
}